package com.baliejun.springsell.exception;

import com.baliejun.springsell.enums.ResultEnum;

/**
 * @Author: LiejunBa
 * @Description:异常处理
 * @Date: 2020/12/7 4:15 下午
 */
public class SellException extends RuntimeException{

    private Integer code;

    public SellException(ResultEnum resultEnum){
        //RuntimeException有msg属性
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();


    }


}
